<?php
/**
 * Created by PhpStorm.
 * User: FOCUS
 * Date: 2015/1/22
 * Time: 3:11
 * @var $this yii\web\View
 */
use backend\models\Option;
use yii\helpers\Html;

?>
<?php $this->beginPage(); ?>
    <!doctype html>
    <html lang="<?php echo Yii::$app->language; ?>">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="description"
              content="<?php echo Html::encode(Option::getSiteDescription()); ?>">
        <meta name="keywords" content="<?php echo Html::encode(Option::getSiteKeywords()); ?>">
        <meta name="viewport"
              content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
        <?php echo Html::csrfMetaTags(); ?>
        <title><?php echo Html::encode($this->title . Option::getSiteTitleWithSeparator()); ?></title>

        <!-- Set render engine for 360 browser -->
        <meta name="renderer" content="webkit">

        <!-- No Baidu Siteapp-->
        <meta http-equiv="Cache-Control" content="no-siteapp"/>

        <link rel="icon" type="image/png" href="assets/i/favicon.png">

        <!-- Add to homescreen for Chrome on Android -->
        <meta name="mobile-web-app-capable" content="yes">
        <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png">

        <!-- Add to homescreen for Safari on iOS -->
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
        <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">

        <!-- Tile icon for Win8 (144x144 + tile color) -->
        <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
        <meta name="msapplication-TileColor" content="#0e90d2">

        <?php $this->registerCssFile('@web/css/amazeui.min.css'); ?>
        <?php $this->registerCssFile('@web/css/app.css'); ?>
        <?php $this->head(); ?>
    </head>
    <body>
    <?php $this->beginBody(); ?>
    <header class="am-topbar am-topbar-inverse">
        <div class="am-container">
            <h1 class="am-topbar-brand">
                <a href="#" class="am-text-ir">Amaze UI</a>
            </h1>

            <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
                    data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
                    class="am-icon-bars"></span></button>

            <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
                <?php echo \yii\widgets\Menu::widget([
                    'options' => ['class' => 'am-nav am-nav-pills am-topbar-nav'],
                    'activeCssClass' => 'am-active',
                    'items' => [
                        [
                            'label' => '首页',
                            'url' => ['index/index'],
                            'active' => Yii::$app->controller->getRoute() == 'index/index',
                        ],
                        [
                            'label' => '案例展示',
                            'url' => ['work/index'],
                            'active' => Yii::$app->controller->getRoute() == 'work/index',
                        ],
                        [
                            'label' => '产品中心',
                            'url' => ['product/index'],
                            'active' => Yii::$app->controller->getRoute() == 'product/index',
                        ],
                        [
                            'label' => '关于我们',
                            'url' => ['index/about'],
                            'active' => Yii::$app->controller->getRoute() == 'index/about',
                        ],
                        [
                            'label' => '联系我们',
                            'url' => ['index/contact'],
                            'active' => Yii::$app->controller->getRoute() == 'index/contact',
                        ],
                    ]
                ]); ?>
                <form class="am-topbar-form am-topbar-left am-form-inline" role="search">
                    <div class="am-form-group">
                        <input type="text" class="am-form-field am-input-sm" placeholder="搜索">
                    </div>
                </form>

                <div class="am-topbar-right">
                    <a class="am-btn am-btn-primary am-topbar-btn am-btn-sm" href="mailto:964590970@qq.com"><i
                            class="am-icon-envelope"></i></a>
                </div>

                <div class="am-topbar-right">
                    <a class="am-btn am-btn-primary am-topbar-btn am-btn-sm" href="tel:18694004487"><i
                            class="am-icon-phone"></i></a>
                </div>
            </div>
        </div>
    </header>
    <main>
        <?php echo $content; ?>
    </main>
    <footer>
        <div class="am-g am-g-fixed">
            <dl>
                <dt>关于我们</dt>
                <dd><a href="#">联系方式</a></dd>
                <dd><a href="#">代理招商</a></dd>
                <dd><a href="#">企业文化</a></dd>
            </dl>
            <dl>
                <dt>关于我们</dt>
                <dd><a href="#">联系方式</a></dd>
                <dd><a href="#">代理招商</a></dd>
                <dd><a href="#">企业文化</a></dd>
            </dl>
            <p class="copyright"><i
                    class="am-icon-copyright"></i> <?php echo date('Y'); ?> <?php echo Option::getCompanyName(); ?></p>
        </div>
    </footer>
    <div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
        <a href="#top" title="回到顶部" class="">
            <span class="am-gotop-title">回到顶部</span>
            <i class="am-gotop-icon am-icon-chevron-up"></i>
        </a>
    </div>
    <?php $this->registerJsFile('@web/js/jquery.ie8.min.js', ['condition' => 'lt IE 9']); ?>
    <script type="text/javascript" src="<?php echo \yii\helpers\Url::to('@web/js/jquery.min.js'); ?>"></script>
    <?php $this->registerJsFile('@web/js/amazeui.min.js'); ?>
    <?php
    if (!empty($this->params['pageScriptFiles'])) {
        foreach ($this->params['pageScriptFiles'] as $pageScriptFile) {
            $this->registerJsFile($pageScriptFile);
        }
    }
    ?>
    <?php $this->registerJsFile('@web/js/app.js'); ?>
    <?php $this->endBody(); ?>
    </body>
    </html>
<?php $this->endPage(); ?>